<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>elementui 学习</title>
    <script src="vue.js"></script>
    <script src="index.js"></script>
    <link rel="stylesheet" href="index.css">
    <style>
        .el-header, .el-footer {
            background-color: #B3C0D1;
            color: #333;
            text-align: right;
            line-height: 60px;
        }

        .el-aside {
            background-color: #D3DCE6;
            color: #333;
            text-align: center;
            line-height: 200px;
        }

        .el-main {
            background-color: #E9EEF3;
            color: #333;
            text-align: center;
        }

	/*找到html标签、body标签，和挂载的标签*/
	/*都给他们统一设置样式*/

        html,body,.el-container{
            /*设置内部填充为0，几个布局元素之间没有间距*/
            padding: 0px;
            /*外部间距也是如此设置*/
            margin: 0px;
            /*统一设置高度为100%*/
            height: 1400px;
        }
    </style>

    <style>
        .el-dropdown-link {
            cursor: pointer;
            color: #409EFF;
        }
        .el-icon-arrow-down {
            font-size: 12px;
        }
    </style>

</head>
<body>

             <div id="app">
             <el-container>
                 <el-header>

                     <el-dropdown @command="handleCommand">
                          <span class="el-dropdown-link">
                            个人中心<i class="el-icon-arrow-down el-icon--right"></i>
                          </span>
                         <el-dropdown-menu slot="dropdown">
                             <el-dropdown-item command="userinfo">用户信息</el-dropdown-item>
                             <el-dropdown-item command="logininfo">用户登录</el-dropdown-item>
                             <el-dropdown-item command="logout">用户退出</el-dropdown-item>
                         </el-dropdown-menu>
                     </el-dropdown>

                 </el-header>

           <el-container>
                 <el-aside>
                     <el-menu
                             class="el-menu-vertical-demo"
                             @open="handleOpen"
                             @close="handleClose"
                             height="1000px">
                     <el-submenu index="1">
                         <template slot="title">
                             <span>会员管理</span>
                         </template>
                         <el-menu-item-group>
                             <el-menu-item index="1-1">
                                 <a href="main.html" target="right">会员管理1</a>
                             </el-menu-item>
                         </el-menu-item-group>

                         <el-menu-item-group>
                             <el-menu-item index="1-2">
                                 <a href="tabs.html" target="right">会员等级</a>
                             </el-menu-item>
                         </el-menu-item-group>

                         <el-menu-item-group>
                             <el-menu-item index="1-2">
                             <a href="form.html" target="right">表单校验</a>
                             </el-menu-item>
                         </el-menu-item-group>
                     </el-submenu>


                         <el-submenu index="2">
                             <template slot="title">
                                 <span>用户管理</span>
                             </template>
                             <el-menu-item-group>
                                 <el-menu-item index="2-1">
                                     <a href="main.html" target="right">会员管理1</a>
                                 </el-menu-item>

                             </el-menu-item-group>
                             <el-menu-item-group>
                                 <el-menu-item index="2-2">会员管理2</el-menu-item>
                             </el-menu-item-group>
                             <el-menu-item-group>
                                 <el-menu-item index="2-3">会员管理3</el-menu-item>
                             </el-menu-item-group>
                         </el-submenu>


                         <el-submenu index="3">
                             <template slot="title">
                                 <span>预约管理</span>
                             </template>
                             <el-menu-item-group>
                                 <el-menu-item index="3-1">
                                     <a href="main.html" target="right">会员管理1</a>
                                 </el-menu-item>

                             </el-menu-item-group>
                             <el-menu-item-group>
                                 <el-menu-item index="3-2">会员管理2</el-menu-item>
                             </el-menu-item-group>
                             <el-menu-item-group>
                                 <el-menu-item index="3-3">会员管理3</el-menu-item>
                             </el-menu-item-group>
                         </el-submenu>

                     </el-menu>
                 </el-aside>


                 <el-main>
                     <iframe name="right" width="100%" height="580px" frameborder="0"></iframe>
                 </el-main>
           </el-container>

                 <el-container>
                     <el-footer>底部区域</el-footer>
                 </el-container>

             </el-container>
             </div>
    <script>
           var  vm = new Vue({
               el:"#app",
               data:{},
            methods:{
                handleCommand(command) {
                    this.$message('click on item ' + command);
                },
                handleOpen(key, keyPath) {
                    this.$message(keyPath);
                },
                handleClose(key, keyPath) {
                    this.$message(keyPath);
                },
                one(){
                    alert("----")
                }
            }
           })
    </script>
</body>
</html>